package com.itheima.mMothodDemo;

import java.util.Scanner;

/*
    找大小
 */
public class MothodDmeo04 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("较大值为:" + getMaxAndMin(sc.nextDouble(), sc.nextDouble()));
    }

    /*
       功能:获得最大值
       条件:两个输入值
       结果:返回最大值
     */
    public static double getMaxAndMin(double a, double b) {
        return (a > b ? a : b);
    }
}
